<?php
	global $wp_query;	
	$worktype 	= isset( $wp_query->query_vars["worktype"] ) ? $wp_query->query_vars["worktype"] : "";	
	$terms = get_terms('worktype');
	$active = $worktype == '' ? 'class="active"' : '';	
	echo "<div class=\"sticky-nav\">";
	echo "<a href=\"#\" $active >ALL</a>";
	foreach ($terms as $term) {
		$active = $term->slug == $worktype ? 'class="active"' : '';
		$link = get_term_link($term->slug, 'worktype');			
		echo "<span>/</span><a href=\"$link\" $active rel=\"pushstate-inline\" >$term->name</a>";
	}
	echo "</div>";
?>	